<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>ThinkCMF插件 采集插件</title>
    <meta name="description" content="ThinkCMF插件 采集插件">
    <meta name="keywords" content="ThinkCMF插件 采集插件">
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{$site.sitename} <span class="caret"></span></a>
            <ul class="dropdown-menu">
            <li><a href="{:url('/plugin/crawler/admin_rule/index',array('crawler_site_id'=>$siteid))}">采集规则</a></li>
            <li><a href="{:url('/plugin/crawler/admin_rule/add',array('crawler_site_id'=>$siteid))}">添加规则</a></li>
            <li><a href="{:url('/plugin/crawler/admin_url/index',array('crawler_site_id'=>$siteid))}">采集列表</a></li>
            <li><a href="{:url('/plugin/crawler/admin_collection/index',array('crawler_site_id'=>$siteid))}">采集数据</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="{:url('/plugin/crawler/admin_index/index')}">切换站点</a></li>
            </ul>
        </li>
        <li class="active"><a>采集数据</a></li>
    </ul>
    <div class="common-form">
        <form method="post" class="js-ajax-form" action="#">
            <div class="table_list">
                <table width="100%" class="table table-hover">
                    <thead>
                    <tr>
                        <th width="50">ID</th>
                        <th>规则名</th>
                        <th>数据ID</th>
                        <th>文章ID</th>
                        <th>标题</th>
                        <th>内容</th>
                        <th>采集时间</th>
                        <th >操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="collections" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.crlrule->rulename}</td>
                            <td>{$vo.collection_id}</td>
                            <td>{$vo.post_id}</td>
                            <td>{$vo.title|mb_substr=0,20}</td>
                            <td>{$vo.content|strip_tags|mb_substr=0,30}</td>
                            <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>                            
                            <td>
                                <a href="#">查看</a>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
            </div>
            <div class="pagination">{$page}</div>
        </form>
    </div>
</div>
<include file="public/scripts"/>
</body>
</html>